#pragma once
#include "base/Singleton.h"

class CxConfig : public xBase::CRefCounted<CxConfig>
{
public:
    CxConfig();
    ~CxConfig();

    std::string GetIpAddress() const;
    bool SetIpAddress(const std::string& ip);

private:
    std::string m_strIpAddress;

    DECLARE_SINGLETON_CLASS(CxConfig)

private:
    DISALLOW_COPY_AND_ASSIGN(CxConfig)

};

typedef xBase::TxSingleton<CxConfig> Config;

